package com.emm.yixun.report.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.report.mapper.ProjectCityMonthMapper;
import com.emm.yixun.report.domain.ProjectCityMonth;
import com.emm.yixun.report.domain.dto.ProjectCityMonthDtoRes;
import com.emm.yixun.report.service.IProjectCityMonthService;
import com.baomidou.framework.service.impl.SuperServiceImpl;

/**
 *
 * ProjectCityMonth 表数据服务层接口实现类
 *
 */
@Service
public class ProjectCityMonthServiceImpl extends SuperServiceImpl<ProjectCityMonthMapper, ProjectCityMonth> implements IProjectCityMonthService {
	@Autowired
	private ProjectCityMonthMapper projectCityMonthMapper;
	
	/**
	 * 各城市公司指标达成率【年度、月度】 （认购）
	 * @param merchantId
	 * @return
	 */
	@Override
	public List<ProjectCityMonthDtoRes> selectCityReachRateSubscribe(long merchantId) {
		return projectCityMonthMapper.selectCityReachRateSubscribe(merchantId);
	}

	/**
	 * 各城市公司指标达成率【年度、月度】 （签约）
	 * @param merchantId
	 * @return
	 */
	@Override
	public List<ProjectCityMonthDtoRes> selectCityReachRateSign(long merchantId) {
		return projectCityMonthMapper.selectCityReachRateSign(merchantId);
	}

	/**
	 * 各城市公司指标达成率【年度、月度】 （回款）
	 * @param merchantId
	 * @return
	 */
	@Override
	public List<ProjectCityMonthDtoRes> selectCityReachRatePayment(long merchantId) {
		return projectCityMonthMapper.selectCityReachRatePayment(merchantId);
	}

}